package com.ruoyi.web.task;


import com.ruoyi.system.service.IByJzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@Configuration
@EnableScheduling
public class ByYhqRunner {

    @Autowired
    private IByJzService jzService;

    // 每天凌晨检索优惠券的到期情况
    @Scheduled(cron = "10 0 0 * * ?")
    public void stopYhq(){
        jzService.stopJzYhqStatus();
    }

}
